All Questions
20 questions
0votes
1answer
117views
AngularJS custom filter for two columns
i have a select-box with option1 and option2; i have a table with column1, column2, column3, column4. Column2 and column3 are numeric fields. 1) i want that i selected option1 in select-box, the ...
0votes
3answers
904views
how to make $http.get Url dynamic in angularjs
Can we make dynamic url like whenever we select a value from first drop down the url should be http://api.fixer.io/latest?base=value. It means when we select value(USD) in first drop down the same ...
-1votes
2answers
828views
how to select few json values in drop down in angularjs
i am getting a data from json file and the values using in dropdown but i dont want to use all values,I want to select only three values in my dropdown.
0votes
1answer
77views
Data not being populated in drop down from JSON Response from REST in Angular js
I'm getting a JSON value from one WebService like this "electricity": { "selectedElectricityBoard":"ABCD", "electrictyConsumerNumber":"12345", &...
0votes
1answer
62views
Angular $http using json file works but using json file with $httpBackend is not working to display data
I can fake getting data from json file with using $http but with $resource/ $httpBackend I don't get any results $http.get (works) $http.get('api/devices.json') .then(function (result) { ...
1vote
2answers
65views
Duplicade cascading select options
I created 2 select box where i go fetch data from a json file, and is working fine, the only problem is in my second select box, if i start selecting any option, the options from the select starts ...
1vote
0answers
167views
AngularJS casting boolean as string in directive scope
I am loading a json feed within an AngularJS directive, using the $http method: $http({ method: 'GET', url: '/api/comments/' }).then(function (res) { console.log(1, JSON.stringify(res....
1vote
1answer
137views
Is there any code in angular for tabs which doesn't load data in browse initially but loads it only when we click it
this is what it shows on clicking tab one time 2nd time I click it loads last two file .15 and .17 again alltogetherthis is shown in console when I inspect even if I have not clicked on tab.And ...
-1votes
2answers
51views
How to define angularjs variables inside script
i am using simple get method var self= this; self.items = []; var fetchGraphs = function() { return $http.get('/api/graph').then( function(response) { ...
-1votes
1answer
195views
AngularJS: Loading single objects from json
I'm trying to list some posts from a json file then after click one, load the single post, but when I click it the data is not loaded. I'm using the function below to handle the data $scope....
0votes
1answer
71views
Angular directive coming in JSON
I have a directive: Here I am passing a data object: <a-link options = "data"></a-link> And here is my directive: .directive('aLink', function() { return { restrict: 'AE', ...
0votes
1answer
946views
Update directive's template on controller's variable change - angularjs
What I'm trying to do is to get a JSON object from a $http request, requested inside a controller, and build a directive that displays the multiple objects in the JSON object in a grid. The problem ...
0votes
1answer
778views
loop in loop ngrepeat angular js not working properly
im having some issues with Angular JS looping into data (ng repeat) From php I send a multi assoc array back as json data. it holds resData and ResMenu each object holds data. in my controller i ...
1vote
1answer
2kviews
Add Properties after json load
I have this json: { "info": [ { "id": 999, "products": [ { "id": 1, }, { "id": 2, } ] } ] } Info -- products -----id And my factory: AppAngular.factory('model', ['...
0votes
1answer
454views
AngularJS passing to directive heavy JSON file
Well, i think i located the problem of chart not showing up, and the problem is probably that i'm loading heavy JSON object from RESTful server and passing it to directive where i'm generating chart ...